home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 2716 < prev    next >
Encoding:
Text File  |  1996-08-06  |  1.3 KB  |  38 lines

  1. Newsgroups: comp.lang.c++
  2. Path: news.sprintlink.net!news1!news
  3. From: ahaas@holli.com (Alan Haas)
  4. Subject: Re: Programming use of a mouse in Turbo C++ 1.01 (DOS)
  5. X-Nntp-Posting-Host: laf-ts0-26.holli.com
  6. Message-ID: <DLF2v9.MpM@iquest.net>
  7. Sender: news@iquest.net (News Admin)
  8. Organization: IQuest Internet, Inc.
  9. X-Newsreader: Forte Free Agent 1.0.82
  10. References: <4dk6r0$o1j@larry.rice.edu>
  11. Date: Fri, 19 Jan 1996 07:17:24 GMT
  12.  
  13. marzuola@great-horned.owlnet.rice.edu (Steven Joseph Marzuola) wrote:
  14.  
  15. >I've had Turbo C++ 1.01 for DOS for several years.  I'll replace it one of
  16. >these days, but in the meantime I've been writing some home/hobby stuff
  17. >with it.
  18.  
  19. >My problem now is, I want to program mouse clicks and/or movement.  A
  20. >function that reads the current state of each button, or returns the X
  21. >and/or Y coordinates of the mouse on the screen, would be sufficient.
  22.  
  23. >There's nothing like it in the "include" library.  Any suggestions?
  24.  
  25. >Thanks.
  26. >-- 
  27. >Steve Marzuola (marzuola@owlnet.rice.edu)
  28. >  Chaos.  I can relate to that.  My life is chaos most of the time.  I
  29. >  am in tune with the universe.  It feels like home. -- Robert Fulghum
  30.  
  31. You can use Dos interrupt 33 to provide mouse functionality.
  32. You can get an interrupt list that will contain the needed needed
  33. values and return values at Simtel.
  34.  
  35. Alan Haas    ahaas@holli.com
  36. "Fun is all the more so when it is shared"
  37.  
  38.